//
//  MeCell.swift
//  NeusoftSchool
//
//  Created by 李狗蛋 on 2017/6/7.
//  Copyright © 2017年 李狗蛋. All rights reserved.
//

import UIKit

class MeCell: UITableViewCell {
    
    var userNameTitle: UILabel!
    var userName:UILabel!
    var foodImageView: UIImageView!

    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
        foodImageView = UIImageView()
        self.contentView.addSubview(foodImageView)
        
        userNameTitle = UILabel()
        userNameTitle.text = "用户名"
        userNameTitle.font = UIFont.systemFont(ofSize: 16)
        self.contentView.addSubview(userNameTitle)
        
        userName = UILabel()
        self.contentView.addSubview(userName)
        
    }
    
    override func layoutSubviews() {
        super.layoutSubviews()
        foodImageView.frame = CGRect(x: 20, y: 20, width: 100, height: 100);
        userNameTitle.frame = CGRect(x: 130, y: 20, width: 60, height: 20);
        userName.frame = CGRect(x: 200, y: 20, width: 100, height: 20);
        
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

}
